<?php 
$cs = Yii::app()->getClientScript();
$cs->registerCoreScript('jquery');
$url=CHtml::asset(Yii::getPathOfAlias('system.web.widgets.pagers.pager').'.css');
$cs->registerCssFile($url);
?>
<script type="text/javascript">
<!--
$(function(){
	$('#search_list .yiiPager a').live('click',function(){
		$.ajax({
			url:$(this).attr('href'),
			success:function(html){
				$('#search_list').html(html);
			}
		});
		return false;
	});
});
//-->
</script>
<div id="search_list">
<?php foreach($posts as $post): ?>
	<?php $this->renderPartial('_view',array('data'=>$post));?>
<?php endforeach; ?>

</div>
<div  class="clear">
<?php $this->widget('CLinkPager', array(
      'pages' => $pages,
  )); ?>
</div>